package com.bailiny;

import java.io.IOException;

/**
 * @auther Xu.Yang
 * @date 2019/1/8 16 41
 * @desc:
 */
public class HelloWorldServlet extends MyServlet {
    @Override
    public void doGet(MyRequest myRequest, MyResponse myResponse) {
        try {
            myResponse.write("get world");
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    @Override
    public void doPost(MyRequest myRequest, MyResponse myResponse) {
        try {
            myResponse.write("post world");
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
